﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExitPlugin
{
    public class Exit : fApp.ebApp
    {
        public string Name
        {
            get
            {
                return "Exit";
            }
        }
        public bool showDialog
        {
            get
            {
                return false;
            }
        }
        public Exit()
        {
        }
        public void Run()
        {
            if (fApp.Forms.fMessageBox.Show("fAppシステムを終了してよろしいですか？", "はい", "いいえ", true, System.Windows.Forms.DialogResult.OK, System.Windows.Forms.DialogResult.Cancel)
                == System.Windows.Forms.DialogResult.OK)
            {
                System.Windows.Forms.Application.Exit();
            }
            else
            {
                fApp.ebAPI.eCtrlApp.endApplication(this.Name);
            }
        }
        public void Dispose()
        {
        }
    }
}
